package com.hdoit.apollo.logical.inventory.dao.impl;


import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.inventory.dao.IInventoryShowDao;
import com.hdoit.apollo.logical.inventory.model.InventoryShow;
import com.tennetcn.data.dao.base.ISqlExpression;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.utils.SqlExpressionFactory;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 14:50:35
 * @comment
 */
@Component
public class InventoryShowDaoImpl extends SuperDao<InventoryShow> implements IInventoryShowDao{

	//private InventoryShowMapper inventoryShowMapper;
	@Override
	public boolean deleteInventoryShow(String inventoryStaffId) {
		ISqlExpression sqlExpression = SqlExpressionFactory.createExpression();
		sqlExpression.addBody("delete from",InventoryShow.class)
					.andWhere("inventoryStaffId=#{inventoryStaffId}")
					.setParam("inventoryStaffId", inventoryStaffId);
		return delete(sqlExpression)>=0;
	}

}
